package com.emm.yixun.common.exception;

/**
 * 
 * @title
 * @description
 * @usage
 * @company 上海亦寻信息技术有限公司
 */
public class BusinessException extends RuntimeException {
	protected String errorCode;
	
	private  String errorMsg;

	/**
	 * @return the errorCode
	 */
	public String getErrorCode() {
		return errorCode;
	}

	/**
	 * @param errorCode
	 *            the errorCode to set
	 */
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}
	
	
	public BusinessException(String errorCode,String errorMsg){
		this.errorCode=errorCode;
		this.errorMsg=errorMsg;
	}

}
